﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MainMenu.aspx.cs" Inherits="PlugNT.Cms.Web.Admin.MainMenu" %>
<%if (subMainMenu!=""){ %>
<%=subMainMenu%>
<%}else{ %>
/* 当前所在选项卡 */
var currTab = 'dashboard';
/* 菜单列表 */
var menu = {
    "dashboard": {
        "text": "控制台",
        "subtext": "常用操作",
        "default": "admin_welcome",
        "children": {
            "admin_welcome": { "text": "帮助信息", "url": "./Info.aspx" },
            "site_setting": { "parent": "setting", "text": "网站配置", "url": "./Systems/Config.aspx" },
            "smi_add_data": { "parent": "core", "text": "添加内容", "url": "./Article/Add.aspx" },
            "smi_article_list": { "parent": "core", "text": "内容管理", "url": "./Article/Admin.aspx" },
            "smi_create_files": { "parent": "core", "text": "生成静态", "url": "./Create/CreateHtml.aspx" }
        }
    },
    "setting": {
        "text": "设置",
        "default": "site_setting",
        "children": {
            "site_setting": { "text": "网站配置", "url": "./Systems/Config.aspx" },
            "url_static": { "text": "伪静态重写", "url": "./UrlRewrite/Admin.aspx" },
            "tmp_select": { "text": "模板管理", "url": "./Systems/SetTemplet.aspx" },
            "pass_setting": { "text": "密码修改", "url": "./Systems/ModifyPass.aspx" },
            "spliter1": { "text": "spliter", "url": "javascript:void();" },
            "user_interface": { "text": "用户接口", "url": "./Systems/SetUsers.aspx" },
            "email_manager": { "text": "邮件模板", "url": "./EmailTemplet/Admin.aspx" },
            "sql_key": { "text": "查询语句", "url": "./Systems/SqlList.aspx" },
            "des_string": { "text": "过滤字符串", "url": "./Systems/SetStrfilter.aspx" },
            "sys_manager": { "text": "垃圾回收", "url": "./Systems/Manager.aspx" }
        }
    },
    "core": {
        "text": "内容",
        "default": "smi_article_list",
        "children": {
            "smi_add_data": { "text": "添加内容", "url": "./Article/Add.aspx" },
            "smi_article_list": { "text": "内容管理 ", "url": "./Article/Admin.aspx" },
            "spliter3": { "text": "spliter", "url": "javascript:void();" },
            "smi_channel_list": { "text": "网站栏目", "url": "./Channel/Admin.aspx" },
            "smi_file_bind": { "text": "绑定模板", "url": "./Templet/Admin.aspx" },
            "smi_create_files": { "text": "生成文件", "url": "./Create/CreateHtml.aspx" }
        }
    },
    "model": {
        "text": "模块",
        "default": "smi_comment_list",
        "children": {
            "admin_list": { "text": "管理员管理", "url": "./Adminer/Admin.aspx" },
            "group_admin": { "text": "权限管理", "url": "./GroupAdmin/Admin.aspx" },
            "user_list": { "text": "用户管理", "url": "./User/Admin.aspx" },
            "spliter4": { "text": "spliter", "url": "javascript:void();" },
            "smi_comment_list": { "text": "评论管理", "url": "./Comment/Admin.aspx" },
            "smi_feedback_list": { "text": "留言管理", "url": "./Feedback/Admin.aspx" },
            "smi_adbanner_list": { "text": "广告管理", "url": "./Ad/Admin.aspx" },
            "smi_friendlink_list": { "text": "友情链接管理", "url": "./FriendLink/Admin.aspx" },
            "smi_attachment_list": { "text": "附件管理", "url": "./Attachment/Admin.aspx" }
        }
    },
    "extend": {
        "text": "扩展",
        "default": "model_list",
        "children": {
            "model_list": { "text": "模型管理", "url": "./SysModel/Admin.aspx" },
            "smi_field_list": { "text": "字段管理", "url": "./Field/Admin.aspx" },
            "smi_ext_search": { "text": "高级查询", "url": "./FieldSearch/Admin.aspx" },
            "category_list": { "text": "类别管理", "url": "./Category/Admin.aspx" },
            "app_list": { "text": "插件管理", "url": "./App/Admin.aspx" }
        }
    },
    "plugin": {
        "text": "插件",
        "default": "<%=pluginDefault%>",
        "children": {
            <%if (pluginChildren!=""){%>
                <%=pluginChildren%>
            <%}else{%>
                "spliter5": { "text": "spliter", "url": "javascript:void();" }
            <%}%>
        }
    }
};     
<%} %>
